#!/usr/bin/python3
# ******************************************************************************
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
# licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#     http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
# PURPOSE.
# See the Mulan PSL v2 for more details.
# ******************************************************************************/
import click


@click.command("checkabi", help="检查abi")
@click.option("-p", "--package", help="软件包名称")
@click.option("-l", "--rpm-repo", "rpm_repo", help="rpm的repo地址")
@click.option(
    "-a",
    "--arch",
    help="软件架构",
    type=click.Choice(["x86", "aarch64"], case_sensitive=False),
    default="x86",
    show_default=True,
    required=True,
)
@click.option("-o", "--output-file", "output_file", help="检查abi的结果输出文件")
@click.option("-c", "--committer", help="软件包的committer")
@click.option("-s", "--address", help="obs的地址")
@click.option("-b", "--branch", help="目标分支")
@click.option("-bp", "obs_repo", help="obs的rpm存储的位置")
def checkabi(
    package, rpm_repo, arch, output_file, committer, address, branch, obs_repo
):
    click.echo("检查abi的变化")


__all__ = "checkabi"
